package com.huidian.busi.server.config;

import com.huidian.cache.handler.ISubscribeResourceModify;
import com.huidian.cache.handler.RedisSubscribeResourceModify;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.Executor;

/**
 * @author tjs
 */
@Configuration
public class CaffRedisCacheConfig {
    /*@Bean
    public ISubscribeResourceModify subscribeResourceModify(@Autowired Executor taskExecutor){
        return new RabbitmqSubscribeResourceModify(taskExecutor);
    }*/


    @Bean
    public ISubscribeResourceModify subscribeResourceModify(@Autowired Executor taskExecutor){
        return new RedisSubscribeResourceModify(taskExecutor);
    }

}
